package com.dt76.smallloanbackendservice.mapper.xiaohao;

import com.dt76.smallloanbackendservice.pojo.xiaohao.ApprovalLoan;
import com.dt76.smallloanbackendservice.pojo.xiaohao.BorrowOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApprovalLoanMapper {
    int addApproveLoan(ApprovalLoan approvalLoan);

    //查询所有待放款审批的订单
    List<BorrowOrder> qryAllLoanOrder(@Param("start") int start,
                                      @Param("end") int end,
                                      @Param("queryBoId") String queryBoId,
                                      @Param("queryName") String queryName,
                                      @Param("queryContractID") String queryContractID,
                                      @Param("startTime") String startTime,
                                      @Param("endTime") String endTime,
                                      @Param("queryType") int queryType,
                                      @Param("queryBoTypeList") String[] queryBoTypeList);

    //查询符合条件的订单总数
    int qryLoanOrderCount(@Param("queryBoId") String queryBoId,
                          @Param("queryName") String queryName,
                          @Param("queryContractID") String queryContractID,
                          @Param("startTime") String startTime,
                          @Param("endTime") String endTime,
                          @Param("queryType") int queryType,
                          @Param("queryBoTypeList") String[] queryBoTypeList);

    List<BorrowOrder> qryAllHanderOrder(@Param("start") int start,
                                        @Param("end") int end,
                                        @Param("queryBoId") String queryBoId,
                                        @Param("queryName") String queryName,
                                        @Param("queryContractID") String queryContractID,
                                        @Param("startTime") String startTime,
                                        @Param("endTime") String endTime,
                                        @Param("queryType") int queryType,
                                        @Param("queryBoType") String queryBoType,
                                        @Param("queryBoTypeList") String[] queryBoTypeList);

    int qryAllHanderOrderCount(@Param("queryBoId") String queryBoId,
                               @Param("queryName") String queryName,
                               @Param("queryContractID") String queryContractID,
                               @Param("startTime") String startTime,
                               @Param("endTime") String endTime,
                               @Param("queryType") int queryType,
                               @Param("queryBoType") String queryBoType,
                               @Param("queryBoTypeList") String[] queryBoTypeList);
}
